package com.czkt.controller;


import com.czkt.pojo.SysUser;
import com.czkt.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class UserController {

    @Autowired
    SysUserService sysUserService;

    @RequestMapping("/")
    @ResponseBody
    public Object getUserCount(){
        return sysUserService.getCount();
    }


    @RequestMapping("/getList")
    @ResponseBody
    public Object getList(){
        return sysUserService.getList();
    }


    @RequestMapping("/saveUser")
    @ResponseBody
    public Object saveUser(SysUser sysUser){
        return sysUserService.getList();
    }
}
